
//app.js
App({

  globalData: {
    userInfo: null,
    inDate: null,
    outDate: null,
  },

  onLaunch: function () {
    wx.login({
      success: function (res) {
        wx.setStorage({
          key: 'code',
          data: res.code,
        })
      }
    })
  },

})